package com.cy.study.mapper;

import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import com.baomidou.mybatisplus.extension.plugins.pagination.Page;
import com.cy.study.entity.CommentEntity;
import com.cy.study.req.PageCommentReq;
import com.cy.study.res.PageCommentRes;
import org.apache.ibatis.annotations.Mapper;
import org.apache.ibatis.annotations.Param;
import org.springframework.stereotype.Component;

@Component
@Mapper
public interface CommentMapper extends BaseMapper<CommentEntity> {
    Page<PageCommentRes> pageComment(@Param("req") PageCommentReq req, Page page);
}
